<template>
  <div class="el-page card-page">
    <div class="image-box">
      <img src="../../../assets/login/cang.png" alt="暂无图片">
      <div class="instructions">
        <div class="stash"> {{ form.warehouseNumber }}仓库</div>
        <div class="person">负责人 <span class="code">{{ form.personName }}</span> </div>
      </div>
    </div>
    <div class="content">
      <div class="text">额定仓容(公斤):{{ form.rated }}</div>
      <div class="text">当前仓容(公斤):{{ form.current }}</div>
      <div class="text">类型:{{ form.warehouseType }}</div>
      <div class="text">品质:{{ }}</div>
    </div>
    <el-divider></el-divider>
    <div class="bottom">
      <div class="icon">
        <svg-icon class="svg-icon" icon-class="temperature" />
        <span class="word">温度</span>
      </div>
      <div class="icon">
        <svg-icon class="svg-icon" icon-class="humidness" />
        <span class="word">湿度</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['form'],
}
</script>

<style lang='scss' scoped>
.el-page {
  padding: 10px !important;
}
.el-page .tabulationBox .cardPage[data-v-0cbef7fc]{
  height: 310px;
}
.card-page {
  // overflow: hidden;
  .image-box {
    position: relative;
    width: 100%;
    height: 160px;

    img {
      width: 100%;
      height: 100%;
    }

    .instructions {
      position: absolute;
      bottom: 0px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;
      padding: 0 10px;
      height: 36px;
      background-color: #2C2C2C80;
      color: #fff;

      .stash {
        font-size: 18px;
      }

      .person {
        font-size: 13px;

        .code {
          margin-left: 5px;
        }
      }
    }
  }

  .content {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .text {
      width: 50%;
      margin: 3px 0;
      font-size: 13px;
      color: #4f4f4f;
    }
  }

  .bottom {
    display: flex;
    align-items: center;

    .icon {
      margin-right: 50px;

      .svg-icon {
        font-size: 30px;
        vertical-align: bottom;
      }

      .word {
        margin-left: 5px;
        font-size: 15px;
        color: #4f4f4f;
      }
    }
  }
}
</style>
